home *** CD-ROM | disk | FTP | other *** search
- Path: news.mindlink.net!news
- From: genew@mindlink.bc.ca (Gene Wirchenko)
- Newsgroups: comp.lang.c
- Subject: Re: Looking for a clear screen function
- Date: Thu, 22 Feb 1996 06:59:46 GMT
- Organization: MIND LINK! - British Columbia, Canada
- Message-ID: <4gh4ec$gsj@fountain.mindlink.net>
- References: <4gaeba$d9h@nkosi.well.com> <3129AC77.5F25@fokus.gmd.de>
- NNTP-Posting-Host: line172.nwm.mindlink.net
- X-Newsreader: Forte Free Agent 1.0.82
-
- Watson <sayegh@fokus.gmd.de> wrote:
-
- >rickyarm@well.com wrote:
- >>
- >> Hello there,
- >>
- >> Does anyone know of a clear screen function to use both in turboC++ on
- >> a PC and one to use in standard C for Unix machines
-
- >#include<stdio.h>
- >for (int i=0;i<25;i++)
- ^^^
- What's this doing here?
-
- > printf("\n");
-
- >This works at least on a screen with 25
- >lines :-)
-
- Nope. It only works if the cursor is on the bottom line and if
- the screen scrolls.
-
- >There's no standard function to clear
- >the screen. In TurboC I guess it's clrscr()
- >(prototyped in <conio.h>), with Unix it's
- >clear()/wclear() (<curses.h>).
- >--
- >* Greetinx from Watson (sayegh@fokus.gmd.de)
- > http://www.fokus.gmd.de/ovma/employees/sayegh/entry.html
- > signal(SIGSEGV,SIG_IGN);
-
- Sincerely,
-
- Gene Wirchenko
-
- C Pronunciation Guide:
- y=x++; "wye equals ex plus plus semicolon"
- x=x++; "ex equals ex doublecross semicolon"
-
-